/* Layout */
import Layout from '@/views/layout/Layout';

const baseRouters = [
  { path: '/login', component: () => import('@/views/login/index'), hidden: true },
  { path: '/404', component: () => import('@/views/404'), hidden: true },
  { path: '*', redirect: '/404', hidden: true },
  {
    path: '/',
    component: Layout,
    redirect: '/index',
    hidden: true,
    children: [{
      path: 'index',
      name: 'HomeIndex',
      meta: { title: '首页' },
      component: () => import('@/views/welcome/index')
    }]
  },
  {
    path: '/svg-icon',
    component: Layout,
    children: [
      {
        path: 'index',
        component: () => import('@/views/svg-icons/index'),
        name: 'SvgIconsIndex',
        meta: { title: '图标', icon: 'icon', noCache: true }
      }
    ]
  },
];

export default baseRouters;
